<?php
basename($_SERVER["PHP_SELF"]) == 'inc.stockist_tab.php' && exit('Invalid Access!');

//tab
$css="<link rel='stylesheet' type='text/css' href='".CSS_URL."/tab/tab".(USER_BROWSER=='msie'? "-ie" : "").".css' />\n";
if($uid=='9' || $uid=='17574'){
$tab=
"<ul class='tabs-nav' id='_tab'>
  <li class='tabs-".($this_file==$vars['file']['member']['stockist_plan']? "" : "un")."selected' rel='purchase'><a href='".$vars['file']['member']['stockist_plan']."'><span>".__("Downline Stockist Setup")."</span></a></li>
  <li class='tabs-".($this_file==$vars['file']['member']['stockist_plan_sales']? "" : "un")."selected' rel='purchase'><a href='".$vars['file']['member']['stockist_plan_sales']."'><span>".__("Downline Stockist Sales")."</span></a></li>
  <li class='tabs-".($this_file==$vars['file']['member']['stockist_access']? "" : "un")."selected' rel='purchase'><a href='".$vars['file']['member']['stockist_access']."'><span>".__("Stockist Access")."</span></a></li>
</ul>
<div class='tabs-panel' style='width:97%;'><%tab_content%></div>";
}
?>